package com.efuture.chapterfour

/* @Description: Kotlin语言中Map集合的创建
 * @Auther: zhaoshanshan
 * @Date: 2022/03/06/7:22 下午
 */
fun main() {

    val map1 = mapOf("zhaoshanshan" to 123,"liuyifan" to 234.4)//mapOf方式创建
    val map2 = mapOf(Pair("zhaoshanshan",123),Pair("liuyifan","hahaha"),Pair("tongshuai",456.6))
    //上面两种创建方式是相同的
}
    